<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Order extends Model {
	protected $fillable = [
		'type_id', 'order_id', 'contacts', 'phone', 'products', 'receipt_name', 'receipt_phone', 'receipt_address', 'receipt_address_detail', 'order_time', 'price',
	];

	public function map() {
		return $this->belongsTo(Activityable::class, 'map_id');
	}

	public function sendLog() {
		return $this->hasOne(SendLog::class, 'o_id');
	}
}
